<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <h1>商品数量:{{count}}</h1>
    <input type="button" value="添加">
</div>
<!--引入vue-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<!--引入jq框架-->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script>
    //创建vur对象
    let vm=new Vue({
        el:"div",
        data:{count:0}
    })
    //给按钮添加点击事件
    $("input").click(function () {
        vm.count++;
    })
</script>
</body>
</html>